package school.valon.persistence.pojo;

import java.io.Serializable;

import javax.persistence.*;


/**
 * The persistent class for the student_class_recording_comments database table.
 * 
 */
@Entity
@Table(name="student_class_recording_comments")
@NamedQueries({
@NamedQuery(name="StudentClassRecordingComment.findAll", query="SELECT s FROM StudentClassRecordingComment s"),
@NamedQuery(name="StudentClassRecordingComment.deleteById", query="DELETE FROM StudentClassRecordingComment WHERE studentClassRecordingCommentsId = :P1")
})
public class StudentClassRecordingComment implements Serializable {

	private static final long serialVersionUID = 4185009286617450864L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="student_class_recording_comments_id")
	private Integer studentClassRecordingCommentsId;

	@Column(name="staff_comment")
	private String staffComment;

	@Column(name="parent_comment")
	private String parentComment;

	//bi-directional many-to-one association to Staff
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="staff_id")
	private Staff staff;

	//bi-directional many-to-one association to Parent
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="parent_id")
	private Parent parent;

	//bi-directional many-to-one association to StudentClassRecording
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="student_class_recording_id")
	private StudentClassRecording studentClassRecording;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="comment_type_id", referencedColumnName="comment_type_id")
	private CommentType commentType;

	public Integer getStudentClassRecordingCommentsId() {
		return this.studentClassRecordingCommentsId;
	}

	public void setStudentClassRecordingCommentsId(Integer studentClassRecordingCommentsId) {
		this.studentClassRecordingCommentsId = studentClassRecordingCommentsId;
	}

	public String getStaffComment() {
		return this.staffComment;
	}

	public void setStaffComment(String staffComment) {
		this.staffComment = staffComment;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public StudentClassRecording getStudentClassRecording() {
		return this.studentClassRecording;
	}

	public void setStudentClassRecording(StudentClassRecording studentClassRecording) {
		this.studentClassRecording = studentClassRecording;
	}

	public CommentType getCommentType() {
		return commentType;
	}

	public void setCommentType(CommentType commentType) {
		this.commentType = commentType;
	}

	public String getParentComment() {
		return parentComment;
	}

	public void setParentComment(String parentComment) {
		this.parentComment = parentComment;
	}

	public Parent getParent() {
		return parent;
	}

	public void setParent(Parent parent) {
		this.parent = parent;
	}
}